﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>欢迎登录后台管理系统</title>
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="js/jquery.js"></script>
    <script language="JavaScript" src="js/json2.js"></script>
    <script src="js/cloud.js" type="text/javascript"></script>
    <script language="javascript">
        var finger;
        $(function () {
            $('.loginbox').css({'position': 'absolute', 'left': ($(window).width() - 692) / 2});
            $(window).resize(function () {
                $('.loginbox').css({'position': 'absolute', 'left': ($(window).width() - 692) / 2});
            });

            $("#submit").click(function () {
                //        var zaz = $("#zaz")[0];
                //        zaz.spDeviceType = 2;
                //        zaz.CharLen = 512;
                //        zaz.TimeOut = 5;
                finger.LIVESCANGetFPRawData(0);
                finger.LDVESCANGetBmp("d:\\Finger.bmp", 1);
                var ret = finger.FPFeatureExtract(43, 99);
//                alert(finger.LIVESCANGetErrorInfo(ret));
                if (ret == 1) {
                }
                $.ajax(
                        {
                            url: "/fingerlogin",
                            type: "POST",
                            dataType: 'json',
                            contentType: "application/json;charset=UTF-8",
                            data: JSON.stringify({fingercode: finger.LIVESCANGetFpchar(0)}),
//                            data: JSON.stringify({fingercode: "QwErEgFjOQAAAAAAAAAAAAAAACYBmv///////////3UKWv5VEb78OxgW/IIkQv4xOeD8szp//B5E5PyMUZL8ZVUD/IFan/xbZw/8hG2Y/HNxP/4fc1L8yH9S/IGCgfydkGv8IplZ/M+aSPy1pVL8LK4Y/iK4ZPx9yTz8scc8/D7SMf7J2Dj8i+oj/Lr9Jvx+AQ79wRAb/VMalP17IAT9CjI4/0gzTP+oO7z9PjxD/38+AP2VTLf9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPg="}),
                            success: function (data) {
                                $.each(data, function (key, val) {
                                    if (key == "error") {
                                        alert(key + ":" + val);
                                    }
                                    if (key == "success") {
                                        location.href = "main.html";
                                    }
                                });
                            }
                        })
            })
        });

        $(document).ready(function () {
            finger = $("#FingerPrintPad")[0];
        });

    </script>
</head>

<body style="background-color:#1c77ac; background-image:url(images/light.png); background-repeat:no-repeat; background-position:center top; overflow:hidden;">

<div id="mainBody">
    <div id="cloud1" class="cloud"></div>
    <div id="cloud2" class="cloud"></div>
</div>


<div class="logintop">
    <span>欢迎登录后台管理界面平台</span>
    <ul>
        <li><a href="#">回首页</a></li>
        <li><a href="#">帮助</a></li>
        <li><a href="#">关于</a></li>
    </ul>
</div>

<div id="111" class="loginbody">

    <div class="systemlogo"></div>

    <div class="loginbox loginbox3">
        <ul class="classlist">

            <li>
                <span>
                    <OBJECT codebase="FingerPrintPad.cab#version=12,0,0,12"
                            classid="clsid:74DCA74B-4B00-44CE-AAFA-D66902C2C6B3"
                            id="FingerPrintPad"
                            name="FingerPrintPad"
                            height=180;
                            width=128;>
                    </OBJECT>
                </span>
                <div class="lright">
                    <p>
                    <h2>指纹登录</h2></p>
                    <br/>
                    <p><a href="LDsetup.exe">下载指纹控件</a></p>
                    <br/>
                    <p><a href="#"
                          onclick="$('#111').attr('style','display: none'),$('#222').attr('style',' ')">切换至用户名密码登录</a>
                    </p>
                    <br/>
                    <br/>
                    <br/>
                    <div><input type="submit" class="loginbtn" id="submit" value="登录"/></div>
                    <!--<a class="enter">进入课程</a>-->
                </div>
            </li>
        </ul>
        <ul>
            <!--<li><input id="username" name="username" type="text" class="loginuser" value="admin"-->
            <!--onclick="JavaScript:this.value=''"/></li>-->
            <!--<li><input id="password" name="password" type="text" class="loginpwd" value="密码"-->
            <!--onclick="JavaScript:this.value=''"/></li>-->
            <!--<li class="yzm">-->
            <!--<span><input name="" type="text" value="验证码（未启用）" onclick="JavaScript:this.value=''"/></span><cite>X3D5S</cite>-->
            <!--</li>-->
            <!--<li>-->
            <!--<label>-->
            <!--<input name="" type="checkbox" value="" checked="checked"/>记住密码-->
            <!--</label>-->
            <!--<label><a href="LDsetup.exe">下载指纹控件</a></label>-->
            <!--<label><a href="#" onclick="$('#111').attr('style','display: none'),$('#222').attr('style',' ')">切换至用户名密码登录</a></label>-->
            <!--</li>-->
        </ul>
    </div>

</div>

<div id="222" class="loginbody" style="display: none">

    <div class="systemlogo"></div>

    <div class="loginbox loginbox3">
        <form id="form" action="/login" method="post">
            <ul>
                <li><input id="username" name="username" type="text" class="loginuser" value="admin"
                           onclick="JavaScript:this.value=''"/></li>
                <li><input id="password" name="password" type="password" class="loginpwd" value="admin"
                           onclick="JavaScript:this.value=''"/></li>
                <li class="yzm">
                    <span><input name="" type="text" value="验证码（未启用）" onclick="JavaScript:this.value=''"/></span><cite>X3D5S</cite>
                </li>
                <li>
                    <input name="submit" type="submit" class="loginbtn" value="登录"/>
                    <label>
                        <input name="" type="checkbox" value="" checked="checked"/>记住密码
                    </label>
                    <!--<label><a href="LDsetup.exe">下载指纹控件</a></label>-->
                    <label><a href="#"
                              onclick="$('#111').attr('style',''),$('#222').attr('style','display: none')">切换至用户名密码登录</a></label>
                </li>
            </ul>
        </form>
    </div>

</div>

<div class="loginbm">版权所有 2016 <a href="#">连云港XX科技开发有限公司</a></div>
</body>
</html>
